package com.qfedu.lc.api.user.controller;


import com.qfedu.lc.api.user.service.WalletServiceFeign;
import com.qfedu.lc.common.param.PayAdd;
import com.qfedu.lc.common.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RequestMapping("/api/user/wallet")
@RestController
public class WalletController {

    @Autowired
    private WalletServiceFeign walletServiceFeign;

    // 调用支付接口
    @PostMapping("/create")
    public R create(@RequestBody PayAdd payAdd){

        return  walletServiceFeign.create(payAdd);

    }



}
